﻿@model article_forecast

@{
    var art = Model;
    ViewData["Title"] = $"{art.horoscope_8char}-简批";
}

<div style="width:100%;text-align:center;height:50px;font-size:20px;color:#666;line-height:50px;">@art.title</div>

<div style="width:100%;padding-left:2rem;">
    @{
        if (string.IsNullOrWhiteSpace(art.horoscope_8char))
        {
            <div class="row text-center">
                <div class="col-md-6 col-md-offset-3">
                    <h2 style="line-height:200%;color:#AE685B;">无数据</h2>
                </div>
            </div>
        }
        else
        {
            <div style="width:100%;text-align:center;height:30px;line-height:30px;color:#666;"> 求测时间: @art.create_time.ToLocalTime().ToString("yyyy-MM-dd HH:mm")</div>
            <p style="line-height:200%;color:#AE685B;">
                姓名: @art.name  &emsp;&emsp; 性别: @(art.sex ? "男" : "女") &emsp;&emsp;<br />
                八字: @art.horoscope_8char
            </p>
        }
    }

</div>

<div style="width:100%;color:#AE685B;padding-top:20px;padding-left:2rem;">
    @Html.Raw(art.horoscope_result)
</div>

